﻿using Quartz;

namespace AutoMail.Quartz
{
    public class TimeWork : IJob
    {
        public Action _Action { get; set; }

        public Task Execute(IJobExecutionContext context)
        {
            return Task.Factory.StartNew(() =>
            {
                _Action.Invoke();
            });
        }
    }
}